import request from '@/utils/request'

// 首页轮播图
 export function download(data) {
   return request({
     url: 'api/index/download',
     method: 'post',
     data
   })
 }
 export function userInfo(data) {
   return request({
     url: 'api/user/userInfo',
     method: 'post',
     data
   })
 }
 export function invest(data) {
   return request({
     url: 'api/project/invest',
     method: 'post',
     data
   })
 }
 export function newsList(params) {
   return request({
     url: 'api/index/newsList',
     method: 'get',
     params: params
   })
 }
 export function myProjectsRecord(params) {
   return request({
     url: 'api/project/myProjectsRecord',
     method: 'get',
     params: params
   })
 }
 export function projectList(params) {
   return request({
     url: 'api/project/projectList',
     method: 'get',
     params: params
   })
 }
 export function projectDetail(params) {
   return request({
     url: 'api/project/projectDetail',
     method: 'get',
     params: params
   })
 }
 export function basicRecord(params) {
   return request({
     url: 'api/project/basicRecord',
     method: 'get',
     params: params
   })
 }
 export function projectreceive(params) {
   return request({
     url: 'api/project/receive',
     method: 'get',
     params: params
   })
 }
export function projectRate(params) {
  return request({
    url: 'api/project/projectRate',
    method: 'get',
    params: params
  })
}
export function noticeList(params) {
  return request({
    url: 'api/index/noticeList',
    method: 'get',
    params: params
  })
}
export function userbankCommit(data) {
  return request({
    url: 'api/user/bankCommit',
    method: 'post',
    data
  })
}

export function userrecommend(params) {
  return request({
    url: 'api/user/recommend ',
    method: 'get',
    params: params
  })
}

export function userteam(params) {
  return request({
    url: 'api/user/team',
    method: 'get',
    params: params
  })
}

export function rankList(params) {
  return request({
    url: 'api/rank/rankList',
    method: 'get',
    params: params
  })
}
export function cooperateList(params) {
  return request({
    url: 'api/index/cooperateList',
    method: 'get',
    params: params
  })
}

export function apply(params) {
  return request({
    url: 'api/goods/apply',
    method: 'get',
    params: params
  })
}
export function goodsList(params) {
  return request({
    url: 'api/goods/goodsList',
    method: 'get',
    params: params
  })
}
// 首页轮播图
export function oindexrderList(params) {
  return request({
    url: 'api/index/orderList',
    method: 'get',
    params: params
  })
}
export function indexrate(params) {
  return request({
    url: 'api/index/rate',
    method: 'get',
    params: params
  })
}
export function userAccount(params) {
  return request({
    url: 'api/account/account',
    method: 'get',
    params: params
  })
}
export function applyOil(data) {
  return request({
    url: 'api/oil/applyOil',
    method: 'post',
    data: data
  })
}
export function commissionList(data) {
  return request({
    url: 'api/index/commissionList',
    method: 'post',
    data: data
  })
}

export function oilRecord(params) {
  return request({
    url: 'api/oil/oilRecord',
    method: 'get',
    params: params
  })
}
export function oilConfig(params) {
  return request({
    url: 'api/oil/oilConfig',
    method: 'get',
    params: params
  })
}
export function loginconfig(params) {
  return request({
    url: 'api/login/config',
    method: 'get',
    params: params
  })
}
export function payOrder(data) {
  return request({
    url: 'api/goods/payOrder',
    method: 'post',
   data
  })
}

export function goodsorderList(params) {
  return request({
    url: 'api/goods/orderList',
    method: 'get',
    params: params
  })
}
export function currencyConvert(params) {
  return request({
    url: 'api/currency/currencyConvert',
    method: 'get',
    params: params
  })
}
export function teamInfo(params) {
  return request({
    url: 'api/user/team',
    method: 'get',
    params: params
  })
}
export function offerRecord(params) {
  return request({
    url: 'api/offer/offerRecord',
    method: 'get',
    params: params
  })
}
export function billList(params) {
  return request({
    url: 'api/bill/billList',
    method: 'get',
    params: params
  })
}
export function awardList(params) {
  return request({
    url: 'api/bill/awardList',
    method: 'get',
    params: params
  })
}
export function awardRecordList(params) {
  return request({
    url: 'api/bill/awardRecord',
    method: 'get',
    params: params
  })
}
export function playOrder(data) {
  return request({
    url: 'api/goods/playOrder',
    method: 'post',
    data: data
  })
}
export function currencyPrice(params) {
  return request({
    url: 'api/index/currencyPrice',
    method: 'get',
    params: params
  })
}
export function currencyTrend(params) {
  return request({
    url: 'api/index/currencyTrend',
    method: 'get',
    params: params
  })
}


export function unLockOffer(params) {
  return request({
    url: 'api/offer/unLockOffer',
    method: 'get',
    params: params
  })
}
export function configRemittanceList(params) {
  return request({
    url: 'api/remittance/configRemittanceList',
    method: 'get',
    params: params
  })
}

export function usertotal(params) {
  return request({
    url: 'api/user/total',
    method: 'get',
    params: params
  })
}
export function deleteAddress(params) {
  return request({
    url: 'api/user/deleteBind',
    method: 'get',
    params: params
  })
}
export function editAddress(data) {
  return request({
    url: 'api/address/editAddress',
    method: 'post',
    data: data
  })
}
export function addAddress(data) {
  return request({
    url: 'api/address/addAddress',
    method: 'post',
    data: data
  })
}
export function checkMember(params) {
  return request({
    url: 'api/user/checkMember',
    method: 'get',
    params
  })
}
export function addressList(params) {
  return request({
    url: 'api/user/bindList',
    method: 'get',
    params: params
  })
}

export function convertRecordList(params) {
  return request({
    url: 'api/convert/convertRecordList',
    method: 'get',
    params: params
  })
}
export function remittanceCommit(data) {
  return request({
    url: 'api/remittance/remittanceCommit',
    method: 'post',
    data: data
  })
}
export function remittanceRecordList(params) {
  return request({
    url: 'api/remittance/remittanceList',
    method: 'get',
    params: params
  })
}
export function configDrawList(params) {
  return request({
    url: 'api/draw/configDraw',
    method: 'get',
    params: params
  })
}
export function drawRecordList(params) {
  return request({
    url: 'api/draw/drawRecordList',
    method: 'get',
    params: params
  })
}
export function drawCommit(data) {
  return request({
    url: 'api/draw/draw',
    method: 'post',
    data: data
  })
}
export function bannerList(type) {
  return request({
    url: 'api/index/bannerList',
    method: 'get',
    params: { type }
  })
}
// 币种详情
export function currencyBill(currency_id, status) {
  return request({
    url: 'api/account/currencyBill',
    method: 'get',
    params: {
      currency_id, status
    }
  })
}
// 允许转账币种
export function configTransferList() {
  return request({
    url: 'api/transfer/configTransferList',
    method: 'get'
  })
}
// 互转
export function gainWallet(member, wallet_account) {
  return request({
    url: 'api/transfer/gainWallet',
    method: 'get',
    params: { member, wallet_account }
  })
}
// 转账
export function transferCommit(data) {
  return request({
    url: 'api/transfer/transferCommit',
    method: 'post',
    data
  })
}
export function sendMail(params) {
  return request({
    url: 'api/mail/sendMail',
    method: 'post',
    data: params
  })
}
export function userReceive(params) {
  return request({
    url: 'api/mail/userReceive',
    method: 'post',
    data: params
  })
}
export function usersend(params) {
  return request({
    url: 'api/mail/usersend',
    method: 'post',
    data: params
  })
}
//   转账地址

export function getAddress(params) {
  return request({
    url: 'api/address/getAddress',
    method: 'get',
    params
  })
}